<?php
/**
 * Id
 * User: Owen Zhang
 * Date: 2020/3/17
 * Time: 中午10:24
 */

namespace app\common\validate;

use app\common\Validate;

class IdValidate extends Validate
{
    public function rules()
    {
        return [
            'id' => 'require|number|gt:0',
        ];
    }

    public function message()
    {
        return [
            'id.require' => 'id必填',
            'id.number'   => 'id必须是数字',
            'id.gt'  => 'id必须大于0',
        ];
    }
}
